package com.xj.rpc;

import com.alibaba.fastjson.JSON;

/**
 * 基于json的序列化实现
 *
 * Created by xiongjie on 2020/2/23.
 */
public class JSONEncoder implements Encoder {

    @Override
    public byte[] encode(Object obj) {
        return JSON.toJSONBytes(obj);
    }
}
